#include <iostream> // for standard I/O
#include <string>   // for strings
#include <iomanip>  // for controlling float print precision
#include <sstream>  // string to number conversion

#include <opencv2/imgproc/imgproc.hpp>  // Gaussian Blur
#include <opencv2/core/core.hpp>        // Basic OpenCV structures (cv::Mat, Scalar)
#include <opencv2/highgui/highgui.hpp>  // OpenCV window I/O

using namespace std;
using namespace cv;
void main()
{
	string src ="E:\\pictest\\front1.mp4";
	IplImage *r;
	VideoCapture cap(src);
	Mat m1;
	char c;
	cvNamedWindow("win1", CV_WINDOW_AUTOSIZE); 
    cvMoveWindow("win1", 100, 100); // offset from the UL corner of the screen
	while(true){
	cap>>m1;
	if(m1.empty())break;
	imshow("win1",m1);
	c = cvWaitKey();
        if (c == 'a') break;
	}
	waitKey();
 
}
void Togrey(IplImage* a){
	
		
}